package com.bycx.wechat.model;

import java.util.Map;

/**
 * 微信模板消息model
 * Created by mjk on 2017/6/27.
 */
public class TemplateMessage {
    private String touser;//接收者openid
    private String template_id;//模板ID
    private String url;  //模板跳转链接
    /**
     * 模板数据
     *  json格式  "data":{"first": { "value":"恭喜你购买成功！", "color":"#173177" },"keynote1":{"value":"巧克力","color":"#173177"},...}
     */
    private Map<String,TempMessageData> data;

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Map<String, TempMessageData> getData() {
        return data;
    }

    public void setData(Map<String, TempMessageData> data) {
        this.data = data;
    }
}
